package com.woniu.uums.controller;

import com.woniu.common.utils.ResponseData;
import com.woniu.uums.pojo.Menu;
import com.woniu.uums.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * packageName com.woniu.controller
 *
 * @author zxyang3636
 * @version JDK 8
 * @className MenuController
 * @date 2024/8/6
 * @description TODO
 */
@RestController
public class MenuController {

    @Autowired
    private MenuService menuService;

    @GetMapping("/selMenu")
    public ResponseData<?> selMenu() {
        try {
            return menuService.selMenu();
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
}
